/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.dao;

import com.lczyfz.istep.common.persistence.CrudDao;
import com.lczyfz.istep.common.persistence.annotation.MyBatisDao;
import com.lczyfz.istep.modules.scene.entity.SceneNetwork;
import com.lczyfz.istep.modules.scene.entity.SceneRouter;
import com.lczyfz.istep.modules.scene.entity.SceneSubnet;

import java.util.List;

/**
 * 子网管理DAO接口
 * @author dh
 * @version 2017-03-25
 */
@MyBatisDao
public interface SceneSubnetDao extends CrudDao<SceneSubnet> {
	List<SceneSubnet> getSubnetListByRouterId(SceneSubnet sceneSubnet);
	List<SceneSubnet> findSubnetListByNetworkId(SceneNetwork sceneNetwork);
	List<SceneSubnet> getRouterSubnetListByRouterId(SceneRouter sceneRouter);
	void  deleteByNetworkId(SceneSubnet sceneSubnet);
	List<SceneSubnet> findRouterSubnet(String routerId,String subnetId);
}